<?php


namespace App\Http\Controllers;


trait utils
{
    public function json_msg(int $code,$data = '',$message = ''){
        $return = [
            'code'=>$code,
            'data'=>$data,
            'message'=>$message
        ];
        return $return;
    }

    public function now() {
        return date('Y-m-d H:i:s');
    }
}
